<?php

use Illuminate\Routing\Router;

Route::group([
	'prefix'        => 'admin/article',
	'namespace'     => 'Beerus\\Modules\\Article\\Controllers',
	'middleware'    => [
		'web',
		'admin',
	],
], function (Router $router) {
	// 整屋审核
	$router->get('/select/index', 'ArticleSelectController@index')->name('articleselect.index');
	$router->get('/select/audit/{aid}', 'ArticleSelectController@audit')->name('articleselect.audit');
	// 存储结果
	$router->post('/select/audit/save', 'ArticleSelectController@auditSave')->name('articleselect.saveaudit');
	// 精选
	$router->get('/select/bestForm/{aid}', 'ArticleSelectController@bestForm');
	$router->post('/select/addBest', 'ArticleSelectController@addBest');
	$router->post('/select/delBest/{aid}', 'ArticleSelectController@delBest');
	$router->post('/select/setPrivate/{aid}', 'ArticleSelectController@setPrivate');
	$router->post('/select/del/{aid}', 'ArticleSelectController@del');
	$router->post('/select/reCheck/{aid}', 'ArticleSelectController@reCheck');
	$router->post('/select/recoverPrivateOfArticle/{aid}', 'ArticleSelectController@recoverPrivateOfArticle');
	// 下行
	$router->get('/select/sendMsgForm/{aid}', 'ArticleSelectController@sendMsg');
	$router->post('/select/pushMsg','ArticleSelectController@pushMsg');
	// 常用语编辑
	$router->get('/select/normalword/list', 'ArticleSelectController@editNormalWord');
	// 常用语保存
	$router->post('/select/normalword/list/save', 'ArticleSelectController@saveNormalWord');
	$router->get('/select/exportNormarlData', 'ArticleSelectController@exportNormarlData');
	// 运营评论和运营点赞
	$router->get('select/comment/{id}', 'ArticleSelectController@addCommentPop');//添加运营评论弹窗
	$router->post('select/comment/{id}/save', 'ArticleSelectController@saveComment');//添加运营评论提交
	$router->get('select/comment/check/{id}', 'ArticleSelectController@checkComment');//校验运营评论
	$router->get('select/comment/{id}/commentaccount', 'ArticleSelectController@commentAccount');//运营评论账号列表
	$router->get('select/comment/{id}/commentaccount/create', 'ArticleSelectController@addCommentAccount');//添加运营评论账号
	$router->post('select/comment/{id}/commentaccount/save', 'ArticleSelectController@commentAccountSubmit');//添加提交
	$router->get('select/like/{id}', 'ArticleSelectController@saveLike');//添加运营点赞
	$router->get('select/copy/{id}','ArticleSelectController@copyUrl');//复制H5链接
	$router->get('select/business/{id}/{type}','ArticleSelectController@editBusiness');
	// 添加room 信息
	$router->get('/select/setLiveRoom/{aid}', 'ArticleSelectController@setLiveRoom');
	$router->post('/select/addLiveRoom', 'ArticleSelectController@addLiveRoom');
	// 获取小程序二维码
    $router->get('/select/qrCode/{aid}', 'ArticleSelectController@getMiniQrCode');
    // 整屋筛选
	$router->get('/search/index', 'ArticleSearchController@index')->name('articlesearch.index');
});
